package cn.ch.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.ch.basic.domain.Base;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Why
 * @since 2022-02-11
 */
@Data
public class Shop extends Base{

    private static final long serialVersionUID = 1L;

    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name = "注册时间" ,orderNum = "3", width = 30, isImportField = "true_st")
    private Date registerTime = new Date();
    //这里由于模板的问题导致数据类型与数据库不匹配，会报错（Error: No typehandler found for property registerTime）
    //把类型LongDate改成Date即可
    /**
     * 待审核     审核通过     驳回
     * 0        1           -1
     */
    @Excel(name = "店铺状态" ,orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name = "店铺地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店招" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    //要重新添加，用来获取
    private Long adminId;
    private Long admin_id;

    //获取employee表信息
    private Employee admin;

}
